package com.ylstm.controller;

import com.ylstm.service.StmSessionService;
import com.ylstm.service.UserService;
import com.ylstm.utils.ResultMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName StmSessionController
 * @Description TODO
 * @date 2022/8/1 19:50
 * @Version 1.0
 * 场次管理控制器
 */
@RestController
@RequestMapping("/sen")
public class StmSessionController {
    @Autowired
        private StmSessionService stmSessionService;
    /*查询所有场次*/
    @RequestMapping("/selectAll")
    public ResultMessage selectAllSession(){
        ResultMessage resultMessage = stmSessionService.selectSession();
        return resultMessage;
    }
}
